<div class="main-content">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <ol class="breadcrumb">
                    <li>
                        <i class="clip-file"></i>
                        <a href="#">
                            Caja
                        </a>
                    </li>
                    <li class="active">
                        Gastos Diarios
                    </li>					
                </ol>
                <div class="page-header">
                    <h1>Caja  <small>Ver Gastos Diarios</small></h1>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <!-- start: DYNAMIC TABLE PANEL -->
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <i class="icon-external-link-sign"></i>
                        Gastos Diarios
                        <div class="panel-tools">
                            <a class="btn btn-xs btn-link panel-collapse collapses" href="#">
                            </a>
                            <a class="btn btn-xs btn-link panel-config" href="#panel-config" data-toggle="modal">
                                <i class="icon-wrench"></i>
                            </a>
                            <a class="btn btn-xs btn-link panel-refresh" href="#">
                                <i class="icon-refresh"></i>
                            </a>
                            <a class="btn btn-xs btn-link panel-expand" href="#">
                                <i class="icon-resize-full"></i>
                            </a>
                            <!--<a class="btn btn-xs btn-link panel-close" href="#">
                                <i class="icon-remove"></i>
                            </a> -->
                        </div>
                    </div>
                    <div class="panel-body">

                        <hr>

                        <table class="table table-striped table-bordered table-condensed table-hover table-full-width" id="sample_1">
                            <thead>
                                <tr>

                                    <th style="width: 10%">Codigo</th>
                                    <th style="width: 10%">Monto</th>
                                    <th style="width: 30%">Motivo</th>
                                    <th style="width: 12%">Fec. Gasto</th>
                                    <th style="width: 18%">Responsable</th>
                                    <th style="width: 10%">Sucursal</th>


                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                if (!empty($gastos)) :
                                    foreach ($gastos as $fila):
                                        ?>  

                                        <tr>
                                            <td><?= $fila->gast_codigo?></td>
                                            <td><?= $fila->gast_monto ?></td>
                                            <td><?= $fila->gast_motivo ?></td>
                                            <td><?= $fila->gast_fecregistro ?></td>
                                            <td><?= $fila->gast_reguso ?></td>
                                            <td><?= $fila->gast_sucursal_nombre ?></td>

                                        </tr>

                                        <?php
                                    endforeach;
                                endif;
                                ?>       				
                            </tbody>
                        </table>

                    </div>
                </div>
                <!-- end: DYNAMIC TABLE PANEL -->
            </div>
        </div>
    </div>
</div>
